<?php
@require("php_config_init.php");
@require("php_config_mysql.php");
$userid = $_GET["userid"];
$goodsid = $_GET["goodsid"];
$sql = "update cart set status = 0 where goodsid = '$goodsid' and userid = '$userid'";
mysql_query($sql);
$count = mysql_affected_rows();
$obj = array();
if($count > 0){
    $obj["code"] = 1;
    $obj["msg"] = "删除成功";
}else{
    $obj["code"] = 0;
    $obj["msg"] = "删除失败";
}
echo json_encode($obj);
?>